package news.service;

import news.dao.IQueryUserDao;
import news.dao.QueryUserDaoImpl;
import news.example.User;

import java.util.List;

public class QueryUserServiceImpl implements IQueryUserService{
    IQueryUserDao iQueryUserDao = new QueryUserDaoImpl();
    @Override
    public List<User> findByName(String username) {
        return iQueryUserDao.findByName(username);
    }

    @Override
    public int countByName(String username) {
        return iQueryUserDao.countByName(username);
    }
}
